﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MainTemp.aspx.cs" Inherits="Workflow.Project.MainTemp" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <link rel="stylesheet" type="text/css" href="../Css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="../Css/bootstrap-responsive.css" />
    <link rel="stylesheet" type="text/css" href="../Css/style.css" />
    <script type="text/javascript" src="../Js/jquery.js"></script>
    <script type="text/javascript" src="../Js/jquery.sorted.js"></script>
    <script type="text/javascript" src="../Js/bootstrap.js"></script>
    <script type="text/javascript" src="../Js/ckform.js"></script>
    <script type="text/javascript" src="../Js/common.js"></script>

    <style type="text/css">
        body {
            padding-bottom: 40px;
        }
        .sidebar-nav {
            padding: 9px 0;
        }

        @media (max-width: 980px) {
            /* Enable use of floated navbar text */
            .navbar-text.pull-right {
                float: none;
                padding-left: 5px;
                padding-right: 5px;
            }
        }


    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table class="table table-bordered table-hover definewidth m10">
            <tr>
                <td class="tableleft">项目号</td>
                <td><asp:TextBox ID="txtPJNo" runat="server"></asp:TextBox>
                    <asp:Button ID="Search" CssClass="btn btn-primary" runat="server" Text="查询" OnClick="Search_Click"/>
                </td>
            </tr>
            <tr>
                <td class="tableleft">项目名称</td>
                <td><asp:TextBox ID="txtPJName" runat="server" Enabled="false"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tableleft">模具号</td>
                <td><asp:TextBox ID="txtMold" runat="server" Enabled="false"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tableleft">产品号</td>
                <td><asp:TextBox ID="txtMaktx" runat="server" Enabled="false"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tableleft">产品名称</td>
                <td><asp:TextBox ID="txtMaktxName" runat="server" Enabled="false"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tableleft">客户名称</td>
                <td><asp:TextBox ID="txtCustomer" runat="server" Enabled="false"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tableleft">业务板块</td>
                <td><asp:TextBox ID="txtBusiness" runat="server" Enabled="false"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tableleft">PM</td>
                <td><asp:TextBox ID="txtPM" runat="server" Enabled="false"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tableleft">项目启动时间</td>
                <td><input type="date" id="txtStartDate" name="txtStartDate"/></td>
            </tr>
            <tr>
                <td class="tableleft">项目类型</td>
                <td><asp:DropDownList ID="ddlPjType" runat="server" Enabled="false">
                    <asp:ListItem>战略项目</asp:ListItem>
                    <asp:ListItem>平台项目</asp:ListItem>
                    <asp:ListItem>一般项目</asp:ListItem>
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td class="tableleft">项目模类型</td>
                <td><asp:CheckBoxList ID="cblMoldType" runat="server" RepeatColumns="3" Enabled="false" RepeatDirection="Horizontal" CssClass="table table-bordered table-hover definewidth m10">
                    <asp:ListItem>量产模</asp:ListItem>
                    <asp:ListItem>样品模</asp:ListItem>
                    <asp:ListItem>商品模</asp:ListItem>
                    <asp:ListItem>转移模</asp:ListItem>
                    <asp:ListItem>改模</asp:ListItem>
                    <asp:ListItem>备模</asp:ListItem>
                    </asp:CheckBoxList></td>
            </tr>
            <tr>
                <td class="tableleft">阶段T1预估完成时间</td>
                <td><input type="date" id="txtT1EndDate" name="txtT1EndDate"/></td>
            </tr>
            <tr>
                <td class="tableleft">阶段T2预估完成时间</td>
                <td><input type="date" id="txtT2EndDate" name="txtT2EndDate"/></td>
            </tr>
            <tr>
                <td class="tableleft">阶段T3预估完成时间</td>
                <td><input type="date" id="txtT3EndDate" name="txtT3EndDate"/></td>
            </tr>
            <tr>
                <td class="tableleft">阶段T4预估完成时间</td>
                <td><input type="date" id="txtT4EndDate" name="txtT4EndDate"/></td>
            </tr>
            <tr>
                <td class="tableleft">阶段T5预估完成时间</td>
                <td><input type="date" id="txtT5EndDate" name="txtT5EndDate"/></td>
            </tr>
            <tr>
                <td class="tableleft">更改原因</td>
                <td><asp:TextBox ID="txtReason" runat="server" Enabled="false" Height="59px" TextMode="MultiLine" Width="239px"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tableleft">数据同步</td>
                <td><asp:TextBox ID="txtData" runat="server" Enabled="false"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tableleft"></td>
                <td>
                    <asp:Button ID="BtnSubmit1" CssClass="btn btn-primary" runat="server" Text="确定" OnClientClick="return Validate()" OnClick="BtnSubmit1_Click" Visible="false"/>
                    <asp:Button ID="BtnSubmit2" CssClass="btn btn-primary" runat="server" Text="数据同步" OnClientClick="return Validate()" OnClick="BtnSubmit2_Click" Visible="false"/>
                </td>
            </tr>
        </table>
    </div>
    </form>
    <script type="text/javascript">
        if ($("#ddlPjType").prop("disabled")) {
            document.getElementById('txtStartDate').disabled = "disabled";
            document.getElementById('txtT1EndDate').disabled = "disabled";
            document.getElementById('txtT2EndDate').disabled = "disabled";
            document.getElementById('txtT3EndDate').disabled = "disabled";
            document.getElementById('txtT4EndDate').disabled = "disabled";
            document.getElementById('txtT5EndDate').disabled = "disabled";
        }
    </script>
</body>
</html>
